package com.message.tcp.ip.ui.member;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;

import com.message.tcp.ip.ui.member.dialog.TransactionTable;

public class TransactionPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	JPanel menuPane = new JPanel();
	private JButton searchButton;
	private JButton updateButton;
	private JButton deleteButton;
	private JLabel functionCodeLabel;
	private JTextField functionText;
	private JScrollPane scrollPane;
	public TransactionPanel(TransactionTable transactionTable){
		this.setLayout(new BorderLayout());
		menuPane = new JPanel();
		this.add(menuPane, BorderLayout.NORTH);
		functionCodeLabel = new JLabel("Function Code");
		functionText = new JTextField(10);
		searchButton = new JButton("Search");
		updateButton = new JButton("Update");
		deleteButton = new JButton("Delete");
		menuPane.add(functionCodeLabel);
		menuPane.add(functionText);
		menuPane.add(searchButton);
		menuPane.add(updateButton);
		menuPane.add(deleteButton);
		scrollPane = new JScrollPane(transactionTable);
		this.add(scrollPane, BorderLayout.CENTER);
	}
}
